//
//  FAQ.m
//  MHO
//
//  Created by Hien NV on 6/18/14.
//  Copyright (c) 2014 maihoang. All rights reserved.
//

#import "FAQ.h"
#import "Lib.h"

@implementation FAQ
+ (FAQ*)faqFromDictionary:(NSDictionary *)dict {
    return [[self alloc] initWithDictionary:dict];
}

- (id)initWithDictionary:(NSDictionary *)dict {
    if (self == [super init]) {
        _faqID = numberCheckNull([dict objectForKey:@"Id"]);
        _title = strCheckNull([dict objectForKey:@"TieuDe"]);
        _content = strCheckNull([dict objectForKey:@"NoiDung"]);
    }
    return self;
}
@end
